package com.qf.kele02.hander;

import com.qf.kele02.utils.Constants;
import com.qf.kele02.vo.ResultVo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExHandler {

	@ExceptionHandler(Exception.class)
	public ResultVo handleValidationEx( Exception e ) {
		return new ResultVo( Constants.FAIL_CODE,"fail" );
	}

}